﻿using System.Collections.Generic;

namespace HuaCheng.Model
{
    //记录通道运行时数据所用的类
    public class ChannelData
    {
        //状态包的数据
        public List<ChannelState> csList { get; set; }
        //记录时在当前工步收到的总包数
        public int totalCount { get; set; }
        //记录时的工步号
        public int stepNum { get; set; }
        //记录时的循环序号
        public string circ { get; set; }
        //记录该条记录的操作类型
        public int worktype { get; set; }
        //记录该条记录的辅助通道数据
        public List<AuxChannel> aux { get; set; }
        //记录该条记录是否为追加数据
        public bool isExtra { get; set; }
        public ChannelData(List<ChannelState> csList,int totalCount,int stepNum,string circ,int worktype,List<AuxChannel> aux,bool isExtra)
        {
            this.csList = csList;
            this.totalCount = totalCount;
            this.stepNum = stepNum;
            this.circ = circ;
            this.worktype = worktype;
            this.aux = aux;
            this.isExtra = isExtra;
        }
        public ChannelData()
        {

        }
    }
}
